package com.dzt.androidframework.json;

import android.os.Bundle;
import android.view.View;

import com.dzt.androidframework.R;
import com.dzt.androidframework.activity.ActivityTitle;
import com.dzt.androidframework.json.car.CarActivity;

import org.xutils.view.annotation.Event;

public class JsonActivity extends ActivityTitle {

	@Override
	protected int getLayoutId() {
		return R.layout.activity_json;
	}

	@Override
	protected void initParams() {
		setTitleView(R.string.menu_4);
	}

	@Override
	protected void initData(Bundle savedInstanceState) {

	}

	@Event(value = {R.id.btn_city, R.id.btn_car, R.id.btn_driving})
	private void onViewClick(View v) {
		switch (v.getId()) {
			case R.id.btn_city:
				startActivity(CityActivity.class, null);
				break;
			case R.id.btn_car:
				startActivity(CarActivity.class, null);
				break;
			case R.id.btn_driving:
				startActivity(DrivingActivity.class, null);
				break;
			default:
				break;
		}
	}

	@Override
	protected String[] initPermissions() {
		return null;
	}
}
